package day20170923.lab01.test12;

/**
 * Created by Administrator on 2017/10/4.
 */
public class Test12 {
    public static void main(String[] args) {
        int a=0;
        for( int i=1;i<=9;i++)//i,j,k都为局部变量
            for( int j=0;j<=9;j++)
                for( int k=0;k<=9;k++) {
                    a = i * 100 + j * 10 + k;
                    if (a == (i * i * i + j * j * j + k * k * k))
                        System.out.println(a);
                }
    }
}
